
package com.woniuxy.three.pms.demo;


import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.web.socket.config.annotation.EnableWebSocket;
import org.springframework.web.socket.server.standard.ServerEndpointExporter;

/**
 * 
*@ProjectName:Pms
*@Date:2019年6月18日
*@ClassName:Springboot01Application.java
*@Author:ThinkPad
*@Description:TODO springboot启动文件
*@Version:版本
*@See：参考版本
*
 */
@EnableWebSocket
@SpringBootApplication
@EnableScheduling
@ComponentScan("com.woniuxy.three.pms.*.controller")
@ComponentScan("com.woniuxy.three.pms.config")
@MapperScan("com.woniuxy.three.pms.dao") 
@ComponentScan("com.woniuxy.three.pms.*.service")
@ComponentScan("com.woniuxy.three.pms")
public class Springboot01Application {

	public static void main(String[] args) {
		SpringApplication.run(Springboot01Application.class, args);
	}
	/**
	 * 
	* @Method : serverEndpointExporter
	* @Description: 将WebSocket部署在Spring容器中
	* @Author ThinkPad 作者
	* @Version 1.0
	* @param @return    参数
	* @return ServerEndpointExporter    返回类型
	* @Exception
	* @Date 2019年6月18日
	 */
	@Bean
	 public ServerEndpointExporter serverEndpointExporter() {
			return new ServerEndpointExporter();
	 }
	
}

